#ifndef ADDFRIENDSEARCH_H
#define ADDFRIENDSEARCH_H

#include "user.h"
#include <QDialog>
#include <QWidget>
#include <qtcpsocket.h>
#include <QHostAddress>
#include <QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QUdpSocket>
#include <QWebSocket>
#include <QCoreApplication>
#include <QtWebSockets/QtWebSockets>
#include <QDateTime>
#include <QDebug>
namespace Ui {
class addfriendsearch;
}

class addfriendsearch : public QDialog
{
    Q_OBJECT

public:
    addfriendsearch(QWidget *parent, user userSelf);
    ~addfriendsearch();

private slots:
    void on_btn_send_addfriendsearch_clicked();

    void on_btn_clear_addfriendsearch_clicked();

private:
    Ui::addfriendsearch *ui;
    QWebSocket* socket;
    QString ip;
    QString port;
    QNetworkAccessManager manager;
    user userSelf;
};

#endif // ADDFRIENDSEARCH_H
